﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Acoris.Rendering
{
    /// <summary>
    /// 表示组合元素
    /// </summary>
    public class CompositionElement:VisualElement
    {

        /// <summary>
        /// 
        /// </summary>
        /// <param name="factory"></param>
        internal override void CreateResources(IDrawingContext factory)
        {
            foreach(var child in VisualChildren)
            {
                child.CreateResources(factory);
            }
        }

        public override void Dispose()
        {
            throw new NotImplementedException();
        }

        internal override void Render(IDrawingContext drawingContext)
        {
            throw new NotImplementedException();
        }

        /// <summary>
        /// 
        /// </summary>
        public VisualElementChildren VisualChildren { get; private set; } = new VisualElementChildren();

    }
}
